package com.xindacloud.sms.console.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xindacloud.sms.console.system.dto.ProjectMemberDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 短信项目
 * </p>
 *
 * @author czc
 * @since 2019-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "项目信息")
public class SmsProject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "项目ID", name = "projectId")
    @TableId(type = IdType.UUID)
    private String projectId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", name = "createUserId")
    private Integer createUserId;

    /**
     * 项目名称
     */
    @ApiModelProperty(value = "项目名称,不能重复", name = "smsProjectName")
    private String smsProjectName;

    /**
     * 用于发送SMS
     */
    @ApiModelProperty(value = "用于发送SMS时的password", name = "password")
    private String password;

    /**
     * 秘钥
     */
    @ApiModelProperty(value = "用于发送SMS时的token", name = "token")
    private String token;

    /**
     * 通道类型sms,voice
     */
    @ApiModelProperty(value = "通道类型sms,voice", name = "channelType")
    private String channelType;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "项目创建时间,格式yyyy-MM-dd HH:mm:ss", name = "createDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    /**
     * 回调URL
     */
    @ApiModelProperty(value = "回调URL", name = "callBack")
    private String callBack;

    @ApiModelProperty(value = "项目成员列表", name = "projectMembersList")
    @TableField(exist = false)
    List<ProjectMemberDTO> projectMembersList;


}
